Proposed Resolution for Core Issue 73

نویسنده

  • William M Miller
چکیده

The definition of comparing two pointers for equality is found in 5.10 ¶1: Pointers to objects or functions of the same type (after pointer conversions) can be compared for equality. Two pointers of the same type compare equal if and only if they are both null, both point to the same object or function, or both point one past the end of the same array. What does it mean for two pointers to " point to the same object? " At least three situations have been mentioned where the answer to this question is less than obvious. The first scenario that was raised is the case where storage allocation results in the " one-past-the-end " of an array having the same address as an object that is not part of the array. For instance, in the following code, if the implementation allocates no padding between arrays a and b, is it permissible for the function to return the value true? struct { int a[1]; int b[1]; } x; bool f() { return a+1 == b; } According to one interpretation of the wording above, the answer is " no " – the expression a+1 cannot be considered to " point to " b[0]. The second problem mentioned for the current wording is that void* pointers do not point to objects, so they either cannot be compared or can never compare equal. (There can be no objects of type void.) The third problem arises from the fact that different objects can occupy the same storage location at different times. For example,

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Gas Sensor Based on Large Hollow-Core Photonic Bandgap Fiber

One concern in using photonic band-gap fiber (PBGF) as a gas sensor is the response time. In this type of the gas sensors, response time is the time required for gas to diffuse into the hollow-core. So considering a large hollow-core PBGF (HC-PBGF), the response time can be significantly reduced. But in the large HC-PBGF, the fundamental issue is the presence of higher order modes (HOMs). Somet...

متن کامل

The Effect of Magnet Width and Iron Core Relative Permeability on Iron Pole Radii Ratio in Spoke-Type Permanent-Magnet Machine: An Analytical, Numerical and Experimental Study

In this paper, we present a mathematical model for determining the optimal radius of the iron pole shape in spoke-type permanent-magnet (PM) machines (STPMM) in order to minimize the pulsating torque components. The proposed method is based on the formal resolution of the Laplace’s and Poisson’s equations in a Cartesian pseudo-coordinate system with respect to the relative permeability effect o...

متن کامل

Semi-Analytical Modeling of Electromagnetic Performances in Magnet Segmented Spoke-Type Permanent Magnet Machine Considering Infinite and Finite Soft-Magnetic Material Permeability

In this paper, we present a semi-analytical model for determining the magnetic and electromagnetic characteristics of spoke-type permanent magnet (STPM) machine considering magnet segmentation and finite soft-material relative permeability. The proposed model is based on the resolution of the Laplace’s and Poisson’s equations in a Cartesian pseudo-coordinate system with respect to the relative ...

متن کامل

اندازه‌گیری نمایه عمق نوری خوشه‌های کهکشانی با استفاده از اثرسونیائف زلدوویچ جنبشی

baryonic matter distribution in the large-scale structures is one of the main questions in cosmology. This distribution can provide valuable information regarding  the processes of galaxy formation and evolution. On the other hand, the missing baryon problem is still under debate. One of the most important cosmological structures for studying the rate and  the distribution of the baryons is gal...

متن کامل

A Context-aware Architecture for Mental Model Sharing through Semantic Movement in Intelligent Agents

Recent studies in multi-agent systems are paying increasingly more attention to the paradigm of designing intelligent agents with human inspired concepts. One of the main cognitive concepts driving the core of many recent approaches in multi agent systems is shared mental models. In this paper, we propose an architecture for sharing mental models based on a new concept called semantic movement....

متن کامل

Pseudo Zernike Moment-based Multi-frame Super Resolution

The goal of multi-frame Super Resolution (SR) is to fuse multiple Low Resolution (LR) images to produce one High Resolution (HR) image. The major challenge of classic SR approaches is accurate motion estimation between the frames. To handle this challenge, fuzzy motion estimation method has been proposed that replaces value of each pixel using the weighted averaging all its neighboring pixels i...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2000